package com.neu.flashmall.product.mapper;

import com.neu.flashmall.product.entity.PmsSkuSaleAttrValue;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 12615
* @description 针对表【pms_sku_sale_attr_value(sku销售属性&值)】的数据库操作Mapper
* @createDate 2022-07-15 18:16:23
* @Entity com.neu.flashmall.product.entity.PmsSkuSaleAttrValue
*/
@Mapper
public interface PmsSkuSaleAttrValueMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PmsSkuSaleAttrValue record);

    int insertSelective(PmsSkuSaleAttrValue record);

    PmsSkuSaleAttrValue selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PmsSkuSaleAttrValue record);

    int updateByPrimaryKey(PmsSkuSaleAttrValue record);

    List<Long> selectSkuAddAttrId(Long skuId);

    List<PmsSkuSaleAttrValue> getBySkuId(Long skuId);

    List<PmsSkuSaleAttrValue> selectByAttrId(Long attrId);

    List<PmsSkuSaleAttrValue> selectAll();

    int deleteBySkuId(Long skuId);
}
